package com.study.ming.studydemo.thd;

import java.io.UnsupportedEncodingException;

public class StudyRunnable implements Runnable {
    @Override
    public void run() {
        final byte[] bytes2 = new byte[]{97, '1', 'z', 'Z', 'a', 'A'};
        try {
            final String s = new String(bytes2, "UTF-8");
            for (int i = 0; i < 500; i++) {
                System.out.println(i + "  " + Thread.currentThread().getName());
            }
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }

    }

    public static void main(String[] args) {
        final StudyRunnable runnable = new StudyRunnable();
        final Thread thread = new Thread(runnable);
        thread.start();
    }
}
